/**
 * 严肃声明：
 * 开源版本请务必保留此注释头信息，若删除我方将保留所有法律责任追究！
 * 本系统已申请软件著作权，受国家版权局知识产权以及国家计算机软件著作权保护！
 * 可正常分享和学习源码，不得用于违法犯罪活动，违者必究！
 * Copyright (c) 2020 陈尼克 all rights reserved.
 * 版权所有，侵权必究！
 */
import { Qs } from "@/utils/tool"
import axios from "@/utils/axios";

//登录
export function leaderList(params) {
  return axios.get("/zhkp/mhlrjApi/green/workProgress/leaderList");
}
export function businessUnitList() {
  return axios.get("/zhkp/mhlrjApi/green/workProgress/businessUnitList");
}




// export function workAdd(params) {
//   return axios.post("/zhkp/mhlrjApi/green/workProgress/add", params);
// }


export function workUpdate(params) {
  return axios.post("/zhkp/mhlrjApi/green/workProgress/update", params);
}

export function workDel(params) {
  return axios.post("/zhkp/mhlrjApi/green/workProgress/delete", params);
}

export function workChange(params) {
  return axios.post("/zhkp/mhlrjApi/green/workProgress/change/page", params);
}


// 综合考评新接口
//年度重点工作列表查询
export function workProgress(params) {
  return axios.post("/zhkp/mhlrjApi/green/workProgress/page", params);
}
export function workAdd(params) {
  return axios.post("/zhkp/mhlrjApi/green/workProgressRequest/add", params);
}

// 草稿列表
export const draftPage = (data) => {
  return axios.post('/zhkp/mhlrjApi/green/request-draft/page',data)
}
// 添加草稿
export const draftAdd = (data) => {
  return axios.post('/zhkp/mhlrjApi/green/request-draft/add',data)
}
//更新草稿
export const draftUpdate = (data) => {
  return axios.post('/zhkp/mhlrjApi/green/request-draft/update',data)
}
//删除草稿
export const draftDel = (data) => {
  return axios.post('/zhkp/mhlrjApi/green/request-draft/delete',data)
}

//根据objectId查询该草稿箱的原始数据
export function workProgressById(id) {
  return axios.get("/zhkp/mhlrjApi/green/workProgress/selectById?objectId=" + id);
}


// 审核管理
export function workApprovalPage(params) {
  return axios.post("/zhkp/mhlrjApi/green/workProgressRequest/approval/page", params);
}


export function workAppSubmit(params) {
  return axios.post("/zhkp/mhlrjApi/green/workProgressRequest/approval/submit", params);
}


// 添加督办
export function superviseAdd(data) {
  return axios.post("/zhkp/mhlrjApi/green/request-supervise/add", data);
}
// 督办查询
export function supervisePage(data) {
  return axios.post('/zhkp/mhlrjApi/green/request-supervise/page', data)
}